function getTagsAlphabetic() {
	var documents:java.util.Vector = new java.util.Vector();
	var itemView:NotesView = database.getView("$v-filter");
}

function getTagTotal(tag) {
	var view:NotesView = database.getView("$v-pixbytag");
	dc = view.getAllDocumentsByKey(tag)
	return dc.getCount();
}

function numOrdAscending(a, b){ return (a-b); }
function numOrdDescending(a, b){ return (b-a); } 

function sortByNumbers(a, b) {
    var x = a.total;
    var y = b.total;
    return (y-x);
}